package de.reichelt.fx;

public class FxNotEmptyValidator extends FxValidator {
  
  public FxNotEmptyValidator(FxFormField field) {
    super(field);
  }

  @Override
  public boolean isValid() throws Exception {
    return !field.isEmpty();
  }

  @Override
  public String getMessage() {
    return "Muss erfasst werden.";
  }
  
}
